<template>
  <div>
<el-dialog title="区域详情" :visible="visible" @close="closeFn" width="40%">
  <div class="name">
    <div>区域名称：</div>
    <!-- <div>{{this.find[0].region.name}}</div> -->
    <div>{{this.name}}</div>
  </div>
  <el-table :data="find">
    <el-table-column type="index" label="序号" width="150"></el-table-column>
    <el-table-column prop="name" label="点位名称" width="200"></el-table-column>
    <el-table-column prop="vmCount" label="设备数量"></el-table-column>
  </el-table>
</el-dialog>
  </div>
</template>

<script>
export default {

  props: {
    visible: {
      type: Boolean,
      required: true
    },
    find: {
      type: Array,
      required: true
    },
    name: {
      type: String,
      required: true
    }
  },
  methods: {
    closeFn () {
      this.$emit('update:visible', false)
    }
  }
}

</script>

<style lang="scss" scoped>
.name{
display: flex;
margin-bottom: 20px;
}
</style>
